FROM postgis/postgis:latest
LABEL maintainer="GeoServer PSC <geoserver-users@lists.sourceforge.net>"

VOLUME [ "/var/lib/postgresql/data" ]

ADD ./postgresql_initdb /docker-entrypoint-initdb.d

COPY --chown=postgres ./postgresql_initdb/* /docker-entrypoint-initdb.d/

HEALTHCHECK --interval=5s --timeout=1s CMD pg_isready -d $POSTGRES_DB -U $POSTGRES_USER
